package com.mybatisflex.admin;

import com.mybatisflex.core.FlexGlobalConfig;
import com.mybatisflex.core.audit.AuditManager;
import com.mybatisflex.spring.boot.MyBatisFlexCustomizer;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBatisFlexConfig implements MyBatisFlexCustomizer{

    @Override
    public void customize(FlexGlobalConfig globalConfig) {
        // 开启 SQL 审计
        AuditManager.setAuditEnable(true);
    }

}
